All Functions of Week 9

read_dta

{haven}

Read a .dta file (Stata data)

ggplot

{GGPLOT2}

Create a ggplot graph

lm

{base}

Fit a linear model

setwd

{base}

Set Working Directory

c

{base}

Combine values/vectors into a vector

geom_smooth

{GGPLOT2}

Generates a smoothed conditional means curve / line

summary

{base}

Obtain summary statistics or detailed regression output

seq

{base}

Create a sequence

ylab

{GGPLOT2}

Label the y axis (ggplot)

library

{base}

Load an R package

theme

{GGPLOT2}

Set theme for GGPLOT2

element_text

{GGPLOT2}

Customise text in GGPLOT2

geom_point

{GGPLOT2}

Generates a scatter plot

plotPlane

{rockchalk}

Draw a 3-D regression plot for two predictors

theme_classic

{GGPLOT2}

A minimalistic theme with no gridlines

stargazer

{stargazer}

Create a regression output table

scale_x_continuous

{GGPLOT2}

Customise continuous x axis

aes

{GGPLOT2}

Construct aesthetic mapping of a ggplot graph

The end!